/**
 * Created by one on 16-4-4.
 */
var Vue = require("vue");
var Router = require("vue-router");
Vue.use(Router);
var index = require("../index/indexWrap");
//var goodsDetail = require("../goodsDetail/goodsDetailWrap");
var win = require("../win/winWrap");
var share = require("../share/shareWrap");
var myCart = require("../myCart/myCartWrap");
var login = require("../login/login");
var myPage = require("../myPage/myPageWrap");
var goodsDetail = require("../goodsDetail/goodsDetailWrap");
var goodsHistory = require("../goodsHistory/goodsHistoryWrap");
var RouterApp = Vue.extend({});
var router = new Router();
var footer= require("../footer/footer");
router.map({
    '/index': {
        component: index
    },
    '/win': {
        component: win
    },
    '/share':{
        component: share
    },
    '/myCart':{
        component: myCart
    },
    '/login':{
        component: login
    },
    '/myPage':{
        component: myPage
    },
    '/goodsDetail':{
        component: goodsDetail
    },
    '/goodsHistory':{
        component: goodsHistory
    }
});
router.start(RouterApp, '#js_routerApp');
new footer({el:".foot_wrap"});